import request from '@/sheep/request';
import { requestInfo } from '@/utils/request.js'
console.log('requestInfo', requestInfo)
export default {
	getOpenid: (data) =>
		request({
			url: '/user.user/getopenid',
			method: 'POST',
			data
		}),

	getPhoneNumber: (data) =>
		request({
			url: '/user.user/getPhoneNumber',
			method: 'POST',
			data
		}),
	categoryList: (params) =>
		request({
			url: '/category',
			method: 'GET',
			params,
		}),
	goodsList: (params) =>
		request({
			url: '/goods.goods/index',
			method: 'GET',
			params
		}),
	getBanner: (params) =>
		requestInfo({
			url: '/api/index/banner',
			method: 'GET',
			params
		}),
	getSmallBannerList: (params) => 
		requestInfo({
			url: '/api/index/smallBanner',
			method: 'GET',
			params
		}),
	getHotzoone:(params)=>
		requestInfo({
			url: '/api/index/hotZone',
			method: 'GET',
			params
		}),
	getSportZone:(params)=>
		requestInfo({
			url: '/api/index/sportZone',
			method: 'GET',
			params
		}),
	getLocation:(params)=>
		requestInfo({
			url: '/api/index/location',
			method: 'GET',
			params
		}),
	// 发送验证码
	smsSend:(data)=>
		requestInfo({
			url: '/api/sms/send',
			method: 'POST',
			data
		}),
		smsLogin:(data)=>
			requestInfo({
				url: '/api/user/smsLogin',
				method: 'POST',
				data
			})
}